package com.kmxd.ams.client.use.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 借阅日志表
 *
 * @author ZuoLG
 * @since 2022-08-02
 */
@Data
@Schema(description = "借阅日志表对象")
public class UseBorrowLogVO implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "主键ID")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  @Schema(description = "公司ID")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long comId;

  @Schema(description = "全宗ID")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long fondsId;

  @Schema(description = "处理人")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userId;

  @Schema(description = "借阅单ID")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long orderId;

  @Schema(description = "通知内容")
  private String content;

  @Schema(description = "领取/归还人")
  private String opUser;

  @Schema(description = "领取/归还日期")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date opDate;

  @Schema(description = "领取/归还说明")
  private String opExplain;

  @Schema(description = "操作类型")
  private Integer opType;

  @Schema(description = "操作的档案")
  private String opArchive;

  @Schema(description = "通知方式")
  private String notice;

  @Schema(description = "订单编号")
  private String orderNumber;

  @Schema(description = "年份")
  private Integer processYear;

  @Schema(description = "类型")
  private Integer enttype;

  @Schema(description = "创建人")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long createBy;

  @Schema(description = "创建时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;

  @Schema(description = "更新人")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long updateBy;

  @Schema(description = "更新时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date updateTime;
}
